<template>
	<view>
		<uni-section type="line">
			<uni-card :cover="'http://127.0.0.1:5220/'+detailData.pic" @click="onClick">
				<text class="uni-body">{{detailData.content}}</text>
			</uni-card>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detailData:null,
				cover: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg',
			}
		},
		onLoad() {
			this.getDetail()
		},
		methods: {
			getDetail(){
				this.$http.get('/detail',{
					params:{
						id:this.$route.query.val
					}
				}).then(res=>{
					console.log(res.data.data)
					this.detailData=res.data.data[0]
				})
			}
		}
	}
</script>

<style>

</style>
